package net.entelijan.cobean.examples.showcase.checkbox;

import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JPanel;

import net.entelijan.cobean.examples.util.ExamplesUtil;
import net.entelijan.scf.DefaultShowcasePanel;
import net.miginfocom.swing.MigLayout;

public class TogglePanel extends DefaultShowcasePanel {

	private JCheckBox checkBox = new JCheckBox();

	private JButton showModelButton = new JButton("Show Model");

	private JButton toggleCobeanButton = new JButton("Toggle Model");

	private static final long serialVersionUID = 1L;

	public TogglePanel() {
		super();
		// Layout the components
		setLayout(new MigLayout());
		add(new JLabel("Check me or not"), "");
		add(checkBox, "wrap");
		add(new JPanel(), "h max, wrap");
		add(ExamplesUtil.createButtonsPanel(100, this.showModelButton,
				this.toggleCobeanButton), "span 2");
	}

	public JCheckBox getCheckBox() {
		return checkBox;
	}

	public void setCheckBox(JCheckBox checkBox) {
		this.checkBox = checkBox;
	}

	public JButton getShowModelButton() {
		return showModelButton;
	}

	public void setShowModelButton(JButton showModelButton) {
		this.showModelButton = showModelButton;
	}

	public JButton getToggleCobeanButton() {
		return toggleCobeanButton;
	}

	public void setToggleCobeanButton(JButton toggleCobeanButton) {
		this.toggleCobeanButton = toggleCobeanButton;
	}

	// Setters and getters for all components

}
